<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Honeydew管理介面</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Jquery -->
<script src="http://code.jquery.com/jquery.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<!-- carousel -->
<link href="${pageContext.request.contextPath}/css/carousel.css" rel="stylesheet" />
<!-- Bootstrap -->
<link href="${pageContext.request.contextPath}/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="${pageContext.request.contextPath}/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
<!-- responsive -->
<link href="${pageContext.request.contextPath}/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
<!-- holder -->
<script src="${pageContext.request.contextPath}/holder/holder.js"></script>
<!-- commons -->
<link href="${pageContext.request.contextPath}/css/commons.css" rel="stylesheet" />

<!-- Manage -->
<script src="${pageContext.request.contextPath}/js/manage.js"></script>
<script>
$(function() {
  $( "input[name*='userMemberBo.BrithdayStr']" ).datepicker({
  	dateFormat: "yy-mm-dd",
  	changeMonth: true,
    changeYear: true
  });
});
</script>
</head>
<body>
<s:form action="saveUpdateUserMember">
	<h1>會員管理</h1>
	<table width="100%" height="100%">
		<tr>
			<td>
				<s:include value="manage_head.jsp" />
			</td>
		</tr>
		<tr>
			<td>
				<input id="userMemberBo.Userid" name="userMemberBo.Userid" type="hidden" value="<s:property value='userMemberBo.Userid'/>" />
				<table width="100%" class="table table-bordered">	
					<tr>
						<th>電子信箱/帳號</th>
						<td>
							<input id="userMemberBo.Email" name="userMemberBo.Email" type="text" value="<s:property value='userMemberBo.Email'/>" />
						</td>
						<th>密碼</th>
						<td>
							<input id="userMemberBo.Password" name="userMemberBo.Password" type="text" value="<s:property value='userMemberBo.Password'/>" />
						</td>
					</tr>
					<tr>
						<th>會員身分</th>
						<td>
							<s:select id="userMemberBo.Identity" name="userMemberBo.Identity" theme="simple" list="#{0:'一般會員', 1:'VIP會員', 99:'管理會員' }"></s:select>
						</td>
						<th>會員姓名</th>
						<td>
							<input id="userMemberBo.Name" name="userMemberBo.Name" type="text" value="<s:property value='userMemberBo.Name'/>" />
						</td>
					</tr>
					<tr>
						<th>會員手機</th>
						<td>
							<input id="userMemberBo.Handphone" name="userMemberBo.Handphone" type="text" value="<s:property value='userMemberBo.Handphone'/>" />
						</td>
						<th>會員電話</th>
						<td>
							<input id="userMemberBo.Localphone" name="userMemberBo.Localphone" type="text" value="<s:property value='userMemberBo.Localphone'/>" />
						</td>
					</tr>		
					<tr>
						<th>會員住址</th>
						<td>
							<input id="userMemberBo.Address" name="userMemberBo.Address" type="text" value="<s:property value='userMemberBo.Address'/>" />
						</td>
						<th>有效狀態</th>
						<td>
							<s:select id="userMemberBo.State" name="userMemberBo.State" theme="simple" list="#{0:'有效', 1:'無效'}"></s:select>
						</td>
					</tr>
					<tr>
						<th>全部購物金</th>
						<td colspan="1">
							<input id="userMemberBo.TotalShoppingMoney" name="userMemberBo.TotalShoppingMoney" type="text" value="<s:property value='userMemberBo.TotalShoppingMoney'/>" />
						</td>
						<th>生日</th>
						<td colspan="1">
							<input id="userMemberBo.BrithdayStr" name="userMemberBo.BrithdayStr" type="text" value="<s:property value='userMemberBo.BrithdayStr'/>" />
						</td>
					</tr>
				</table>
				<div align="right">
					<s:submit id="saveBtn" cssClass="btn" value="儲存" />
				</div>
			</td>
		</tr>
	</table>
</s:form>
</body>
</html>